import http from '@/utils/http2'

/**
 * 获取采购单信息
 * @param {*} params 
 * @returns 
 */
export function queryPurchase(params) { 
  return http.post("/api/purchase/list", params);
}
/**
 * 根据id获取详情信息
 * @param {*} id 
 * @returns 
 */
export function queryDetailById(id) {
  return http.get("/api/purchase/getById", {id})
}